import request from '@/utils/request'

// 查询故障类型反馈列表
export function listDeviceFaultType(query) {
  return request({
    url: '/business/deviceFaultType/list',
    method: 'get',
    params: query
  })
}

// 查询故障类型反馈所有列表
export function listAllDeviceFaultType(query) {
  return request({
    url: '/business/deviceFaultType/listAll',
    method: 'get',
    params: query
  })
}

// 查询故障类型反馈详细
export function getDeviceFaultType(id) {
  return request({
    url: '/business/deviceFaultType/getInfo/' + id,
    method: 'get'
  })
}

// 新增故障类型反馈
export function addDeviceFaultType(data) {
  return request({
    url: '/business/deviceFaultType/add',
    method: 'post',
    data: data
  })
}

// 修改故障类型反馈
export function updateDeviceFaultType(data) {
  return request({
    url: '/business/deviceFaultType/edit',
    method: 'post',
    data: data
  })
}

// 删除故障类型反馈
export function delDeviceFaultType(id) {
  return request({
    url: '/business/deviceFaultType/remove/' + id,
    method: 'get'
  })
}
